﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using Microsoft.Phone.Controls;

namespace ChartSample
{
    public partial class MainPage : PhoneApplicationPage
    {
        // Constructor
        public MainPage()
        {
            InitializeComponent();
            this.Loaded += new RoutedEventHandler(MainPage_Loaded);
        }

        void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            Dictionary<string, int> source = new Dictionary<string, int>();
            source.Add("Atlanta Intl. Airport", 50);
//            source.Add("Barcelona El Prat Airport", 20);
//            source.Add("Santiago de Chile Inlt. Airport", 20);
//            source.Add("Denmark Airport", 10);
            //source.Add("Intl. Airport", 2000);
            //source.Add("El Prat Airport", 100);
            //source.Add("de Chile Inlt. Airport", 400);
            //source.Add("Airport", 4250);
            //source.Add(" Intl. Airport", 200);
            //source.Add(" El Prat Airport", 1000);
            //source.Add(" de Chile Inlt. Airport", 4050);
            //source.Add(" Airport", 420);
            chart.ItemsSource = source;
        }
    }
}